f(x) = 0.5 * (x + 2.0) * (x - 1.0)^(2.0)
g_1(x) = 2.0 * f(x)
g_2(x) = f(x - 1.0)
g_3(x) = f(x) - 1.0